home *** CD-ROM | disk | FTP | other *** search
- function launchSCO(url){
- parent.mainFrame.location = url + "_main.htm";
- }
-
-
- //purpose: check if there is a value saved in the users tracking disc for the last module launched.
- // if there is, return true
- function validLastPartViewed(){
- if (parent.bottomFrame.xml_Object.VideoArts.Student.LastPartViewed.ModuleCode._value !=""){
- launchLastPartViewed();
- //return true;
- }else{
- //return false;
- parent.mainFrame.location = "main_menu.htm";
- }
- }
-
-
- // purpose: to launch the last part viewed from the 'return' page.
- function launchLastPartViewed(){
- //alert("last part viewed launched");
- // get the value of the last Module launched
- var modulePath = parent.bottomFrame.xml_Object.VideoArts.Student.LastPartViewed.ModuleCode._value;
-
- parent.bottomFrame.switchModules(modulePath);
-
- //alert(modulePath);
-
- // add the thick/thin suffix
- //modulePath += "_" + parent.bottomFrame.xml_Object.VideoArts.Student.ContentType._value + "/lms_index.htm";
- //launch the SCO
- launchSCO(modulePath);
- // open the pre-menu
- //parent.mainFrame.location = "pre_menu.htm";
- //parent.frames[1].chgTopPage('pre_menu','htm');
-
- }
-
- // function that finds the images by name and sets them to the appropriate colour
- // if the module has been completed
- function initImages(array){
- for (i=0;i<array.length;i++){
- var myCompletionStatus = parent.bottomFrame.getModuleCompletionStatus(array[i]._value);
- if (myCompletionStatus == 'completed'){
- if (eval ("document.img_" + array[i]._value)){
- setImageComplete (array[i]._value);
- }
- }
- }
- }
-
-
- // function to launch the Video Arts site
- function gotoVideoArts(){
- window.open("http://www.videoarts.co.uk");
- }